<div class="panel panel-default">
	<div class="panel-heading"><strong>UCenter 同步登录窗口</strong><em>（普通页面登录跳转、非AJAX登录）</em></div>
	{if !isset($auth)}
	<div class="panel-body">
		<form class="form-horizontal" role="form" action="{U('Index/login')}" method="post" data-sea="Validator">
			<div class="form-group">
				<label for="inputEmail1" class="col-sm-2 control-label">用户名</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="inputEmail1" placeholder="用户名" name="username">
				</div>
			</div>
			<div class="form-group">
				<label for="inputPassword2" class="col-sm-2 control-label">密码</label>
				<div class="col-sm-10">
					<input type="password" class="form-control" id="inputPassword2" placeholder="Password" name="password">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-1 col-sm-5">
					<button type="submit" class="btn btn-primary btn-block">登录</button>
				</div>
				<div class="col-sm-offset-1 col-sm-5">
					<button type="reset" class="btn btn-info btn-block">取消</button>
				</div>
			</div>
		</form>
	</div>
	{else}
	<div class="panel-body">
		<div class="row">
			<div class="col-sm-offset-2 col-sm-10">
				<h3><strong><em>页面跳转</em>方式用户登录成功</strong></h3>
				<ul>
					<li>用户UID： <strong>{$auth.uid}</strong></li>
					<li>用户名： <strong>{$auth.username}</strong></li>
					<li>真实姓名： <strong>{$auth.realname}</strong></li>
				</ul>
			</div>
			<div class="col-sm-offset-2 col-sm-10">
				<a href="{U('Index/logout')}" class="btn btn-info btn-block logout-btn">页面跳转方式退出登录状态</a>
			</div>
		</div>
	</div>
	{/if}
</div>